import 'package:flutter/material.dart';

class BasicScreen extends StatelessWidget{
  const BasicScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('基础页面'),
        leading: IconButton(
          icon: const Icon(Icons.arrow_back),
          onPressed: ()=>Navigator.pop(context),
        ),
      ),
      body:  Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            const Icon(Icons.check_circle,size: 80,color: Colors.green),
            const SizedBox(height: 20),
            const Text(
              '基础导航示例',
              style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
            ),
            const SizedBox(height: 10),
            const Text('此页面展示了最基本的导航功能，没有参数传递',
              style: TextStyle(fontSize: 16, color: Colors.grey),
              textAlign: TextAlign.center,),
            const SizedBox(height: 40),
            ElevatedButton(onPressed: ()=>Navigator.pop(context),
                style: ElevatedButton.styleFrom(
                  padding: const EdgeInsets.symmetric(horizontal: 40,vertical: 15)
                ),
                child: const Text('返回首页'))  ,
          ],
          
        ),
      ),
    );
  }

}